cmake_minimum_required(VERSION 3.13)
project(dot-sort VERSION 0.0.5)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/static)

include_directories(${CMAKE_SOURCE_DIR}/include)

file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)

find_package(SFML 2.5 COMPONENTS system window graphics REQUIRED)

add_executable(dot_sort ${SOURCES})
target_link_libraries(dot_sort sfml-window sfml-graphics sfml-system) #SFML libs
target_link_libraries(dot_sort stdc++fs) #Lib std c++

file(COPY ${CMAKE_SOURCE_DIR}/res DESTINATION "${CMAKE_BINARY_DIR}/bin")

